package com.czxy.tanhua.mongo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Document("recommend_user")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class RecommendUser implements Serializable {
    @Id
    private ObjectId id;
    @Field("userId")
    private Long userId;
    @Field("toUserId")
    private Long toUserId;
    @Field("score")
    private Double score;
    @Field("date")
    private String date;
}